package com.lalnou3g.hm0419;

import java.io.Closeable;
import java.io.IOException;

/**
 * Created by dllo on 18/4/18.
 */
public class IOUtils {
    public static void closeAll(Closeable...closeables){
        if (closeables == null){
            return;
        }

        for (Closeable closeable : closeables) {
            if (closeable != null){
                try {
                    closeable.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }

            }
        }

    }


}
